package cn.fangline.wo.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 经纪人
 * </p>
 *
 * @author 抽离
 * @since 2017-04-21
 */
public class Agent extends Model<Agent> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "agent_id", type = IdType.AUTO)
	private Integer agentId;
    /**
     * 姓名
     */
	@TableField("agent_name")
	private String agentName;
    /**
     * 电话
     */
	private String tel;
    /**
     * 公司
     */
	private String corp;
    /**
     * 门店
     */
	private String dept;
    /**
     * 头像
     */
	@TableField("avatar_url")
	private String avatarUrl;
    /**
     * URL
     */
	private String url;
    /**
     * 城市
     */
	@TableField("city_id")
	private Integer cityId;
    /**
     * 网站
     */
	private Integer net;
    /**
     * 外网用户ID
     */
	@TableField("origin_user_id")
	private String originUserId;
    /**
     * 服务区域
     */
	private String zone;
    /**
     * 服务小区
     */
	private String section;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;

	@TableField(value="corp_id"/*, exist = false*/)
	private Integer corpId;

	@TableField(value="user_id"/*, exist = false*/)
	private Long userId;

	@TableField(exist = false)
	private String originHouseId;

	public String getOriginHouseId() {
		return originHouseId;
	}

	public void setOriginHouseId(String originHouseId) {
		this.originHouseId = originHouseId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getCorpId() {
		return corpId;
	}

	public void setCorpId(Integer corpId) {
		this.corpId = corpId;
	}

	public Integer getAgentId() {
		return agentId;
	}

	public void setAgentId(Integer agentId) {
		this.agentId = agentId;
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getCorp() {
		return corp;
	}

	public void setCorp(String corp) {
		this.corp = corp;
	}

	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	public Integer getNet() {
		return net;
	}

	public void setNet(Integer net) {
		this.net = net;
	}

	public String getOriginUserId() {
		return originUserId;
	}

	public void setOriginUserId(String originUserId) {
		this.originUserId = originUserId;
	}

	public String getZone() {
		return zone;
	}

	public void setZone(String zone) {
		this.zone = zone;
	}

	public String getSection() {
		return section;
	}

	public void setSection(String section) {
		this.section = section;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.agentId;
	}

	@Override
	public String toString() {
		return "Agent{" +
				"agentId=" + agentId +
				", agentName='" + agentName + '\'' +
				", tel='" + tel + '\'' +
				", corp='" + corp + '\'' +
				", dept='" + dept + '\'' +
				", avatarUrl='" + avatarUrl + '\'' +
				", url='" + url + '\'' +
				", cityId=" + cityId +
				", net=" + net +
				", originUserId='" + originUserId + '\'' +
				", zone='" + zone + '\'' +
				", section='" + section + '\'' +
				", createTime=" + createTime +
				'}';
	}
}
